package com.dao;

import java.util.List;
import java.util.Map;

import com.entity.Ptype;
import com.entity.Ptype;

public interface PtypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ptype record);

    int insertSelective(Ptype record);

    Ptype selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ptype record);

    int updateByPrimaryKey(Ptype record);
    
    public Ptype checkUname(Map<String, Object> uname);

	// 查询所有信息
	public List<Ptype> getAll(Map<String, Object> map);

	// 查询所有信息
	public List<Ptype> getAll2(Map<String, Object> map);

	// 获取条数
	public int getCount(Map<String, Object> po);

	// 分页
	public List<Ptype> getByPage(Map<String, Object> map);

	// 分页
	public List<Ptype> getByPage2(Map<String, Object> map);

	// 模糊查询并分页
	public List<Ptype> select(Map<String, Object> map);
}